//
//  NSUserDefaults+QTAdd.h
//  QTCategory
//
//  Created by 张俊博 on 16/9/9.
//  Copyright © 2016年 CISDI. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface NSUserDefaults (QTAdd)

+ (void)clearUserDefaults;

+ (void)resetDefaults;

+ (NSString *)refreshToken;
+ (void)updateRefreshToken:(NSString *)refreshToken;

+ (NSString *)accessToken;
+ (void)updateAccessToken:(NSString *)accessToken;
+ (NSDate *)accessTokenRefreshTime;
+ (BOOL)isTokenExpires;

+ (NSString *)domainID;
+ (void)updateDomainID:(NSString *)domainID;
+ (void)clearDoaminID;

+ (NSString *)accountID;
+ (void)updateAccountID:(NSString *)accountID;
+ (void)clearAccountID;

+ (BOOL)hasLogin;

+ (void)updateCurrentChat:(NSString *)chatId;
+ (void)clearCurrentChat;
+ (NSString *)currentChat;

+ (NSString *)loginAccount;
+ (void)updateLoginAccount:(NSString *)account;

+ (NSString *)enterpriseName;
+ (void)updateEnterpriseName:(NSString *)enterpriseName;

+ (NSString *)deviceID;
+ (NSString *)deviceToken;
+ (void)updateDeviceToken:(NSString *)deviceToken;

+ (NSString *)deviceVoipPushToken;
+ (void)updateDeviceVoipPushToken:(NSString *)deviceVoipPushToken;

+ (NSArray *)CommonUseEmojis;
+ (void)UpdateEmoji:(NSString *)emoji;
+ (void)DeleteEmojiWithUserId:(NSString *)userId;

+ (void)updateAPPVersion;
+ (NSString *)appVersion;

+ (BOOL)isCurLanguageZh_cn;
+ (void)updateCurLanguage:(NSString *)language;

+ (BOOL)hasShowVoiceChatAlertView;
+ (void)updateVoiceChatShowAlertView;

+ (BOOL)needShowLaunch;

+ (BOOL)isBidaReadOpen;
+ (void)updateBidaRead:(BOOL)isOpen;

+ (BOOL)needShowAuthAlertRedDot:(NSString *)domain;
+ (void)updateNeedShowAuthAlertRedDot:(NSString *)domain;

+ (BOOL)voiceChatInSession;
+ (void)updateVoiceChatSessionStatus:(BOOL)sessionStatus;

@end
